import $http from "axios"

// 因为这里是export暴露的 要解构
import {axioslink2} from "@/api/index.js"


let productlistm = {
    state: {
        linkdata2:[],
        
    },
    getters: {
    },
    mutations: {
        UP_DATA_PRODUCTLIST(state,payload){  
            state.linkdata2=state.linkdata2.concat(payload.data)  
          }
    },
    actions: {
        LINK_DATA_LIST(context,data){
            // console.log(data);
            axioslink2(data).then((ok)=>{ 
                context.commit("UP_DATA_PRODUCTLIST",{data:ok.data.data}) 
            })
        },
}
}

export default productlistm